#ifndef MY_CAMERA_H
#define MY_CAMERA_H

#include <string>
#include "cg/cg.h"
#include "ITargetable.h"
#include "MyPeanut.h"

namespace PeanutQuest {

    class MainCamera : public cg::Entity, 
		public cg::IDrawListener,
		public cg::IReshapeEventListener
	{
    private:
		double _winWidth, _winHeight;
		cg::Vector3d _position, _targetPosition, _lookTo;
		ITargetable* _target;

    public:
        MainCamera();
        virtual ~MainCamera();
        void init();
        void draw();
        void onReshape(int width, int height);		
        void onKeyReleased(unsigned char key);
		void setTarget(ITargetable* target);
	};
}

#endif
